﻿@model SchoolPointe.RelatedContent.ViewModels.RelatedContentItemViewModel

<fieldset>
  <legend>Related Content Fields</legend>
            
  <div class="editor-label">
    @Html.LabelFor(model => model.RelationType)
  </div>
  <div class="editor-field">
    @Html.DropDownListFor(model => model.RelationType,
        new System.Web.Mvc.SelectList(Enum.GetNames(typeof(SchoolPointe.RelatedContent.Enums.RelationType)).Select(s => new { Name = s }), "Name", "Name", Model.RelationType))
    @Html.ValidationMessageFor(model => model.RelationType)
  </div>   
  
  <div class="editor-label">
    @Html.LabelFor(model => model.RelatedItemId)
  </div>
  <div class="editor-field">
    @Html.TextBoxFor(model => model.RelatedItemId)
    @Html.ValidationMessageFor(model => model.RelatedItemId)
  </div>                
</fieldset>